package com.aaa.pojo.yy;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log {
    private Integer id;
    private String loginName;
    private String userName;
    private String ip;
    private String className;
    private String methodName;
    private String params;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;


}
